Skip to content

Fix retention cleanup observer-heartbeat deadlock#887

Merged
chubes4 merged 2 commits into
mainfrom
fix/886-recent-activity-heartbeat
Jul 12, 2026
Merged

Fix retention cleanup observer-heartbeat deadlock#887
chubes4 merged 2 commits into
mainfrom
fix/886-recent-activity-heartbeat

Conversation

@chubes4

@chubes4 chubes4 commented Jul 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Stop treating scanner-owned last_seen_at and observed_at heartbeats as retention cleanup activity.
  • Protect only recent genuine lifecycle transitions: created_at, finalized_at, and cleanup_eligible_at.
  • Report the lifecycle field that triggered the recent-activity safeguard.

Root cause

Retention apply revalidated cleanup-eligible worktrees against last_seen_at, but inventory and reconciliation scans rewrite that heartbeat. Daily scans therefore kept every eligible row permanently within the recency window.

Tests

  • for test (tests/*.php) { php "$test" || exit }
  • Covers fresh observation-only timestamps remaining removable and fresh lifecycle timestamps remaining protected.

AI assistance

@homeboy-ci

homeboy-ci Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine-code

Lint

review lint — passed

ℹ️ Full options: homeboy self docs commands/lint
Deep dive: homeboy review lint data-machine-code --changed-since 25b563d

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-review-lint-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-review-lint-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/29209519290

Test

review test — passed

ℹ️ Auto-fix lint issues: homeboy refactor data-machine-code --from lint --write
ℹ️ Collect coverage: homeboy test data-machine-code --coverage
ℹ️ Save test baseline: homeboy test data-machine-code --baseline
ℹ️ Pass args to test runner: homeboy test -- [args]
ℹ️ Full options: homeboy self docs commands/test
Deep dive: homeboy review test data-machine-code --changed-since 25b563d

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-review-test-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-review-test-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/29209519290

Audit

review audit — passed

  • audit — 6 finding(s)
  • Total: 6 finding(s)

Deep dive: homeboy review audit data-machine-code --changed-since 25b563d

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-review-audit-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-review-audit-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/29209519290
Tooling versions
  • Homeboy CLI: homeboy 0.281.20+123145ee082b+435726b
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 193904ac
  • Action: unknown@unknown

@chubes4
chubes4 merged commit 9eb1f11 into main Jul 12, 2026
5 checks passed
@chubes4
chubes4 deleted the fix/886-recent-activity-heartbeat branch July 12, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant